home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Graphics
/
NXPlot3d
/
Source
/
function.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-07-26
|
175b
|
14 lines
#include <math.h>
int NFN=2;
float function(int set,float x,float y)
{
float r;
r=sqrt(x*x+y*y);
if (set==0) return(cos(r));
if (set==1) return(cos(r+.75));
return(0.0);
}